package com.study.spark.scala.summer.controller

import com.study.spark.scala.summer.common.TController
import com.study.spark.scala.summer.service.WordCountService

import scala.io.{BufferedSource, Source}

class WordCountController extends TController{
  private val wordCountService = new WordCountService

  //调度
  def dispatch(): Unit = {
    val stringToInt = wordCountService.analysis()
    // TODO 5.将统计结果打印输出
    println(stringToInt) //Map(Hello -> 2, Spark -> 1, Scala -> 1)
  }
}
